// pages/home/home.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
        name:"蟹黄堡",
        id:"333",
        age:"23",
        arr:["酸菜鱼","酸辣粉丝","酸梅汤","柠檬鸡爪","话梅"],
        fontSize:"30px",
        imgSrcs:[
            "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fww3.sinaimg.cn%2Fmw690%2Fd0a73063ly1gtc07gyn47g20nm0c3npi.gif&refer=http%3A%2F%2Fwww.sina.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1633183804&t=bb4a1190df9357f901dc4e273b8a59d5",
            "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201601%2F15%2F20160115213717_Hcfia.jpeg&refer=http%3A%2F%2Fb-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1633184020&t=f16148a92a461dee64b22de052b982e9",
            "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fww4.sinaimg.cn%2Fmw690%2Fc154cd32gy1gthryqv1fvj20j60csac8.jpg&refer=http%3A%2F%2Fwww.sina.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1633184067&t=96e84afd20f5b0bf1a3d6cfb17d1701a",
            "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fww2.sinaimg.cn%2Fmw690%2F0076EdGgly1gtzv832yxbj30j60ec0tl.jpg&refer=http%3A%2F%2Fwww.sina.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1633184083&t=457156a2058318c921cddb3e1f038503"
        ]
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
        //理解为vue中的created或beforeMounted
        console.log("onload");

    },

    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function () {
        //理解为vue中的mounted
        console.log("onReady");

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {
        console.log("show");

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {
        console.log("hide");

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {
        console.log("unload");

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {
        console.log("pullDownRefresh");

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {
        console.log("ReachBottom");

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {
        console.log("share");

    }
})